//: Playground - noun: a place where people can play

import UIKit

let url = NSURL.init(string: "http://123.57.186.17/app.php/index/hot/page/1")

let weather = NSData.init(contentsOf: url as! URL)

let string = NSString.init(data: weather as! Data, encoding: String.Encoding.utf8.rawValue)

let result:NSDictionary = try! JSONSerialization.jsonObject(with: weather! as Data, options: .allowFragments) as! NSDictionary

let weatherInfo: NSArray = result.object(forKey: "info") as! NSArray

//let city = weatherInfo.object(forKey: "city")







		
